﻿<%@ page title="" language="C#" masterpagefile="~/Site.master" autoeventwireup="true" inherits="ZCH002, App_Web_tvzzdynp" %>

<asp:Content ID="cntHead" ContentPlaceHolderID="Head" Runat="Server">
<link href="styles/ZCH002.css" rel="stylesheet" type="text/css"/>
<script src="scripts/ZCH001.js" type="text/javascript"></script>

    <style type="text/css">

        .ZCH002_txt_10
        {}

    </style>

    <script type="text/javascript">

//        $(document).ready(function () {
//            $("#MainContent_btn执行").click(function () {
                //                    $("#MainContent_hidTblList").val = $("#MainContent_tblList").val();
//                $("#MainContent_hidTblListCell") = document.getElementById("#MainContent_tblList")..firstChild.firstChild.innerText;
//                $("#MainContent_hidTblListCell") = document.getElementById("#MainContent_ONO1").innerhtml;
//                                alert(VAL.innerHTML);
                //                var tr = $("#MainContent_tblList").find("tr");
                //                var td = $(tr[rowIndex]).find("td");
                //                var text = $(td[colIndex]).text();
//            });
//        });

//            jQuery(function ($) {
//                var tr = $("#MainContent_tblList").find("tr");
//                var td = $(tr[rowIndex]).find("td");
//                var text = $(td[colIndex]).text();
//            });
            //查询按钮不渲染
            jQuery(function ($) {
                $(":submit").each(function (i, e) {
                    //alert($(this).val());
                    if ($(this).val() == "查询") {
                        $(this).css("display", "none");
                    }
                });
            });

            //
            jQuery(function ($) {
                //字符数字可以输入
                $("#MainContent_txt指示状态CD,#MainContent_txt车主,#MainContent_txt所用车型CD,#MainContent_txt所属区分").bind({
                    "keydown": function (event) {
                        return keyCheckAlphaNumeric(event.keyCode);
                    }
                });

            });
    
    </script>
</asp:Content>
<asp:Content ID="cntMain" ContentPlaceHolderID="MainContent" Runat="Server">
    <div align = "center" style =" margin-top :10px "  id="div处理区分">
        <asp:Label ID="lbl处理区分" runat="server" Text="处理区分" CssClass="ZCH002_lbl" Width="53px" ></asp:Label>
        <asp:TextBox ID="txt处理区分" runat="server" style="width:20px;margin-left:3px;" 
            Text="2"  MaxLength="1" ontextchanged="txt处理区分_TextChange" ></asp:TextBox>
        <asp:Label ID="Label1" runat="server" Text="（1：查询 2：登记 3：订正 9：删除）" Width="300px"  style="border:solid 1px #808080;"></asp:Label>
    </div>
    <div>
        <asp:Label ID="lbl调度指示号" runat="server" Text="调度指示号" CssClass="ZCH002_lbl" 
            Width="77px" ></asp:Label>
        <asp:TextBox ID="txt调度指示号" runat="server" style="margin-left:3px;" 
            Text="DL13050" Width="60px" MaxLength="7" ></asp:TextBox>
    </div>
    <div>
        <asp:Label ID="lbl装货时间" runat="server" CssClass="ZCH002_lbl" Text="*装货时间"></asp:Label>
        <asp:TextBox ID="txt装货时间_Day" runat="server" CssClass="ZCH002_txt_date" Text="2012/12/01"></asp:TextBox>
        <asp:TextBox ID="txt装货时间_Hour" runat="server" CssClass="ZCH002_txt_hour">18</asp:TextBox>
        <asp:Label ID="lbl时" runat="server" CssClass="ZCH001_lbl" Text="时" style=" background:none;"></asp:Label>

        <asp:Label ID="lbl所用车型" runat="server" Text="*所用车型" CssClass="ZCH002_lbl" style="margin-left:50px;"></asp:Label>
        <asp:TextBox ID="txt所用车型CD" runat="server" Text="0" CssClass="ZCH002_txt_1" Width="28px"></asp:TextBox>
        <asp:Label ID="txt所用车型" runat="server" Text="5t卡车" CssClass="ZCH002_txt_4" Width="75px"></asp:Label>
        <asp:Button ID="btn所用车型查询" runat="server" Text="查询"  cssClass="button"/>

        <asp:Label ID="lbl运费" runat="server" CssClass="ZCH002_lbl" Text="*运费" style="margin-left:50px;"></asp:Label>
        <asp:TextBox ID="txt运费" runat="server" CssClass="ZCH002_txt_3" Text="1，500"></asp:TextBox>
        <asp:Label ID="lbl元" runat="server" CssClass="ZCH001_lbl" Text="元" style=" background:none;"></asp:Label>

        <asp:Label ID="lbl指示状态" runat="server" CssClass="ZCH002_lbl" Text="指示状态" style="margin-left:50px;"></asp:Label>
        <asp:TextBox ID="txt指示状态CD" runat="server" CssClass="ZCH002_lbl" Text="01" 
            Width="29px"></asp:TextBox>
        <asp:Label ID="txt指示状态" runat="server" CssClass="ZCH002_txt">指示中</asp:Label>
        <asp:Button ID="btn指示状态查询" runat="server" Text="查询" cssClass="button"/>


    </div>
    <div>
        <asp:Label ID="lbl车牌号" runat="server" Text="*车牌号" CssClass="ZCH002_lbl"></asp:Label>
        <asp:TextBox ID="txt车牌号" runat="server" style="width:80px;" Text="苏F88888" ></asp:TextBox>
        <asp:Button ID="btn车牌号查询" runat="server" Text="查询"  cssClass="button"/>
        <asp:Label ID="lbl所属区分" runat="server" Text="*所属区分" CssClass="ZCH002_lbl" style="margin-left:50px;"></asp:Label>
        <asp:TextBox ID="txt所属区分CD" runat="server" Text="01" CssClass="ZCH002_txt_2"></asp:TextBox>
        <asp:Label ID="txt所属区分" runat="server" Text="本社" CssClass="ZCH002_lbl" style="background:none;"></asp:Label>
        <asp:Button ID="btn所属区分查询" runat="server" Text="查询" cssClass="button" />
    </div>
    <div>
        <asp:Label ID="lbl车主" runat="server" Text="*车主" CssClass="ZCH002_lbl"></asp:Label>
        <asp:TextBox ID="txt车主CD" runat="server" Text="A000001" CssClass="ZCH002_txt_4"></asp:TextBox>
        <asp:Label ID="txt车主" runat="server" Text="赵老板" CssClass="ZCH002_lbl" style="background:none;"></asp:Label>
        <asp:Button ID="btn车主查询" runat="server" Text="查询" cssClass="button" />
        <asp:Label ID="lbl车主联系电话1" runat="server" Text="联系电话1" CssClass="ZCH002_lbl" style="margin-left:50px;"></asp:Label>
        <asp:TextBox ID="txt车主联系电话1" runat="server" Text="15951318513" CssClass="ZCH002_txt_8"></asp:TextBox>
        <asp:Label ID="lbl车主联系电话2" runat="server" Text="联系电话2" CssClass="ZCH002_lbl"></asp:Label>
        <asp:TextBox ID="txt车主联系电话2" runat="server" Text="0513-88620001" CssClass="ZCH002_txt_8"></asp:TextBox>
        <asp:Label ID="lbl合同编号" runat="server" Text="合同编号" CssClass="ZCH002_lbl" style="margin-left:50px;"></asp:Label>
        <asp:TextBox ID="txt合同编号" runat="server" Text="151403011" CssClass="ZCH002_txt_8"></asp:TextBox>
               
    </div>
    <div>
        <asp:Label ID="lbl订单号" runat="server" Text="订单号" CssClass="ZCH002_lbl"></asp:Label>
        <asp:TextBox ID="txt订单号" runat="server" Text="DD1212001"  CssClass="ZCH002_txt_4" Width="74px"></asp:TextBox>
        <asp:Button ID="btn订单号追加" runat="server" Text="追加" cssClass="button" 
            onclick="btn订单号追加_Click"/>
        <asp:Button ID="btn可发货订单查询" runat="server" Text="可发货订单查询" cssClass="button" 
            style="margin-left:50px;" Width="120px" Enabled="False"/>

    </div>

    <div style="width:100%;margin-top:12px;">
            <asp:Label ID="lbl总件数" runat="server" Text="总件数" style="position:relative;float:right;right:84px; top: 0px;" Width="40px"></asp:Label>
            <asp:Label ID="txt总件数" runat="server" Text="4" CssClass="ZCH002_txt_4" style="position:relative;float:right;right:0px; top: 0px;" Width="40px"></asp:Label></div>
    <div style="margin-top:3px; width:990px;">
        <asp:Table ID="tblList" runat="server" style="width:990px;">
<%--            <asp:TableHeaderRow>
                <asp:TableHeaderCell width="30px">选择</asp:TableHeaderCell>
                <asp:TableHeaderCell width="30px">子号</asp:TableHeaderCell>
                <asp:TableHeaderCell width="60px">订单号</asp:TableHeaderCell>
                <asp:TableHeaderCell width="80px" >品名</asp:TableHeaderCell>
                <asp:TableHeaderCell width="40px" >长</asp:TableHeaderCell>
                <asp:TableHeaderCell width="40px" >宽</asp:TableHeaderCell>
                <asp:TableHeaderCell width="40px" >高</asp:TableHeaderCell>
                <asp:TableHeaderCell width="40px" >重量</asp:TableHeaderCell>
                <asp:TableHeaderCell width="40px" >数量</asp:TableHeaderCell>
                <asp:TableHeaderCell width="70px" >承运费</asp:TableHeaderCell>
                <asp:TableHeaderCell width="70px" >结算方式</asp:TableHeaderCell>
                <asp:TableHeaderCell width="170px" >代理店</asp:TableHeaderCell>
                <asp:TableHeaderCell width="170px" >发货地</asp:TableHeaderCell>
                <asp:TableHeaderCell width="170px" >送货地</asp:TableHeaderCell>
            </asp:TableHeaderRow>
           
            <asp:TableRow CssClass="odd">
                <asp:TableCell   ><asp:CheckBox ID="CheckBox4" runat="server" /></asp:TableCell>
                <asp:TableCell  >001</asp:TableCell>
                <asp:TableCell  >DZ1312001</asp:TableCell>
                <asp:TableCell  >01钢丝绳</asp:TableCell>
                <asp:TableCell  >11m</asp:TableCell>
                <asp:TableCell  >2m</asp:TableCell>
                <asp:TableCell  >2m</asp:TableCell>
                <asp:TableCell  >15.30t</asp:TableCell>
                <asp:TableCell  >20个</asp:TableCell>
                <asp:TableCell  >1,050元</asp:TableCell>
                <asp:TableCell  >到付</asp:TableCell>
                <asp:TableCell  >AD00001南通钢铁贸易</asp:TableCell>
                <asp:TableCell  >AL01001南通市亚力钢丝绳</asp:TableCell>
                <asp:TableCell  >AL02003上海钢制品</asp:TableCell>
            </asp:TableRow>
            
            <asp:TableRow CssClass="even">
                <asp:TableCell   ><asp:CheckBox ID="CheckBox3" runat="server" /></asp:TableCell>
                <asp:TableCell  >002</asp:TableCell>
                <asp:TableCell  >DZ1312002</asp:TableCell>
                <asp:TableCell  >01钢丝绳</asp:TableCell>
                <asp:TableCell  >11m</asp:TableCell>
                <asp:TableCell  >2m</asp:TableCell>
                <asp:TableCell  >2m</asp:TableCell>
                <asp:TableCell  >15.30t</asp:TableCell>
                <asp:TableCell  >20个</asp:TableCell>
                <asp:TableCell  >1,050元</asp:TableCell>
                <asp:TableCell  >到付</asp:TableCell>
                <asp:TableCell  >AD00001南通钢铁贸易</asp:TableCell>
                <asp:TableCell  >AL01001南通市亚力钢丝绳</asp:TableCell>
                <asp:TableCell  >AL02003上海钢制品</asp:TableCell>
            </asp:TableRow>

            <asp:TableRow CssClass="odd">
                <asp:TableCell   ><asp:CheckBox ID="CheckBox2" runat="server" /></asp:TableCell>
                <asp:TableCell  >003</asp:TableCell>
                <asp:TableCell  >DZ1312003</asp:TableCell>
                <asp:TableCell  >01钢丝绳</asp:TableCell>
                <asp:TableCell  >11m</asp:TableCell>
                <asp:TableCell  >2m</asp:TableCell>
                <asp:TableCell  >2m</asp:TableCell>
                <asp:TableCell  >15.30t</asp:TableCell>
                <asp:TableCell  >20个</asp:TableCell>
                <asp:TableCell  >1,050元</asp:TableCell>
                <asp:TableCell  >到付</asp:TableCell>
                <asp:TableCell  >AD00001南通钢铁贸易</asp:TableCell>
                <asp:TableCell  >AL01001南通市亚力钢丝绳</asp:TableCell>
                <asp:TableCell  >AL02003上海钢制品</asp:TableCell>
            </asp:TableRow>
            
            <asp:TableRow CssClass="even">
                <asp:TableCell   ><asp:CheckBox ID="CheckBox1" runat="server" /></asp:TableCell>
                <asp:TableCell  >004</asp:TableCell>
                <asp:TableCell  >DZ1312004</asp:TableCell>
                <asp:TableCell  >01钢丝绳</asp:TableCell>
                <asp:TableCell  >11m</asp:TableCell>
                <asp:TableCell  >2m</asp:TableCell>
                <asp:TableCell  >2m</asp:TableCell>
                <asp:TableCell  >15.30t</asp:TableCell>
                <asp:TableCell  >20个</asp:TableCell>
                <asp:TableCell  >1,050元</asp:TableCell>
                <asp:TableCell  >到付</asp:TableCell>
                <asp:TableCell  >AD00001南通钢铁贸易</asp:TableCell>
                <asp:TableCell  >AL01001南通市亚力钢丝绳</asp:TableCell>
                <asp:TableCell  >AL02003上海钢制品</asp:TableCell>
            </asp:TableRow>--%>
            
        </asp:Table>

    <asp:GridView ID="gvDM" runat="server" CellPadding="2" ForeColor="#333333" 
            AutoGenarateColumns="False"  Width="990px">
        <AlternatingRowStyle BackColor="White" />

        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <Columns>
<%--            <asp:TemplateField>
                <ItemTemplate>
                    <asp:CheckBox ID="chkbox" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField  DataField="ONO" HeaderText="子号" >
            <ControlStyle Width="40px" />
            </asp:BoundField>
            <asp:BoundField DataField="ONO" HeaderText="订单号" >
            <ControlStyle Width="50px" />
            </asp:BoundField>
            <asp:BoundField DataField= "PINMING_CD"  HeaderText="品名CD" />
            <asp:BoundField DataField= "PINM_HANZI"  HeaderText="品名" />
            <asp:BoundField DataField="LENGTH" HeaderText="长" />
            <asp:BoundField DataField="WIDTH" HeaderText="宽" />
            <asp:BoundField DataField="HIGHTH" HeaderText="高" />
            <asp:BoundField DataField="WEIGHT" HeaderText="重量" />
            <asp:BoundField DataField="COUNTS" HeaderText="数量" />
            <asp:BoundField DataField="CHENGYUN_COSTS" HeaderText="承运费" />
            <asp:BoundField DataField="JIESUAN_TYPE" HeaderText="结算方式" />
            <asp:BoundField DataField="AGENT" HeaderText="代理店CD" >
                <ControlStyle Width="60px" />
            </asp:BoundField>
            <asp:BoundField DataField="AGENT_LUOCHENG" HeaderText="代理店名"  >
                <ControlStyle Width="120px"></ControlStyle>
            </asp:BoundField>
            <asp:BoundField DataField="ZHUANGHUO" HeaderText="发货地CD" >
                <ControlStyle Width="60px" />
            </asp:BoundField>
            <asp:BoundField DataField="ZHUANGHUO_LUOCHENG" HeaderText="发货地名"  >
                <ControlStyle Width="120px"></ControlStyle>
            </asp:BoundField>
            <asp:BoundField DataField="XIEHUO" HeaderText="送货地CD" >
                <ControlStyle Width="60px" />
            </asp:BoundField>
            <asp:BoundField DataField="XIEHUO_LUOCHENG" HeaderText="送货地名"  >
                <ControlStyle Width="120px"></ControlStyle>
            </asp:BoundField>
            <asp:BoundField DataField="ORDER_STATUS" HeaderText="订单状态"  Visible= "false" />

            <asp:TemplateField>
                <ItemTemplate>
                    <asp:CheckBox ID="chkbox" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField   HeaderText="子号" >
            <ControlStyle Width="40px" />
            </asp:BoundField>
            <asp:BoundField  HeaderText="订单号" >
            <ControlStyle Width="50px" />
            </asp:BoundField>
            <asp:BoundField  HeaderText="品名CD" />
            <asp:BoundField  HeaderText="品名" />
            <asp:BoundField  HeaderText="长" />
            <asp:BoundField  HeaderText="宽" />
            <asp:BoundField  HeaderText="高" />
            <asp:BoundField  HeaderText="重量" />
            <asp:BoundField  HeaderText="数量" />
            <asp:BoundField  HeaderText="承运费" />
            <asp:BoundField  HeaderText="结算方式" />
            <asp:BoundField  HeaderText="代理店CD" >
                <ControlStyle Width="60px" />
            </asp:BoundField>
            <asp:BoundField  HeaderText="代理店名"  >
                <ControlStyle Width="120px" />
            </asp:BoundField>
            <asp:BoundField  HeaderText="发货地CD" >
                <ControlStyle Width="60px" />
            </asp:BoundField>
            <asp:BoundField  HeaderText="发货地名"  >
                <ControlStyle Width="120px" />
            </asp:BoundField>
            <asp:BoundField  HeaderText="送货地CD" >
                <ControlStyle Width="60px" />
            </asp:BoundField>
            <asp:BoundField  HeaderText="送货地名"  >
                <ControlStyle Width="120px" />
            </asp:BoundField>
            <asp:BoundField  HeaderText="订单状态"  Visible= "false" />
--%>
        </Columns>
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />

    </asp:GridView>
    
    </div>



    <div style="margin-top:10px; text-align:center;">
        <asp:Label ID="lbl合计" runat="server" Text="合计" CssClass="ZCH002_lbl" Width="53px"  ></asp:Label>
        <asp:Label ID="lbl重量" runat="server" Text="46t" CssClass="ZCH002_lbl" Width="45px" style="background:#fff; border:solid 1px #808080;" ></asp:Label>
        <asp:Label ID="lbl数量" runat="server" Text="32个" CssClass="ZCH002_lbl" Width="45px" style="background:#fff; border:solid 1px #808080;"></asp:Label>
    </div>

    <div style="margin-top:10px">
        <fieldset title="备注" style="width:770px;display:inline;">
            <legend>备注</legend>
            <div style="height:50px;">
                <asp:TextBox ID="txt备注" runat="server" Text="要求不能淋雨" CssClass="ZCH002_txt_10" 
                    Height="45px" Width="746px"></asp:TextBox>
            </div>
        </fieldset>
    </div>

    <asp:HiddenField ID="hid所用车型" runat="server" />
    <asp:HiddenField ID="hid指示状态" runat="server" />
    <asp:HiddenField ID="hid所属区分" runat="server" />
    <asp:HiddenField ID="hid车主" runat="server" />
    <asp:HiddenField ID="hidTblListCell" runat="server" />

</asp:Content>
<asp:Content ID="cntFooter" ContentPlaceHolderID="FooterContent" Runat="Server">
<div style="text-align:center; margin-bottom:10px;">
        <div class="btn_footer"><asp:Button ID="Button7" runat="server" Text="执行" 
                CssClass="btn_footer" onclick="btn执行_Click"/></div>
        <div class="btn_footer"><asp:Button ID="Button34" runat="server" Text="取消"  CssClass="btn_footer"/></div>
        <div class="btn_footer"><asp:Button ID="Button35" runat="server" Text=""  CssClass="btn_footer"/></div>
        <div class="btn_footer"><asp:Button ID="Button36" runat="server" Text="上一页"  CssClass="btn_footer"/></div>
        <div class="btn_footer"><asp:Button ID="Button37" runat="server" Text="下一页" CssClass="btn_footer" /></div>
        <div class="btn_footer"><asp:Button ID="Button38" runat="server" Text="清除"  CssClass="btn_footer"/></div>
        <div class="btn_footer">
            <asp:Button ID="btn主菜单" runat="server" Text="主菜单" CssClass="btn_footer" onclick="btn主菜单_Click" /></div>
    </div>
</asp:Content>

